-- GENERATED SPELL FOR [Hed'mush the Rotting] --


function spell0_10821(pUnit, Event) --@Mighty Blow,n/a--
pUnit:FullCastSpellOnTarget(14099,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10821', 592, 1)
end

function Sorts_10821(pUnit, Event)
local choix_sorts_10821 = math.random(0, 0)
if choix_sorts_10821 == 0 then
pUnit:RegisterEvent('spell0_10821', 1, 1)
end
end

function mob10821_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10821', math.random(1500, 3000), 1)
end

function mob10821_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10821_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10821_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10821, 1, 'mob10821_Action')
RegisterUnitEvent(10821, 2, 'mob10821_Leave')
RegisterUnitEvent(10821, 3, 'mob10821_Kill')
RegisterUnitEvent(10821, 4, 'mob10821_Die')
